package com.x.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author x-cloud
 * @since 2021-07-29
 */
@RestController
@RequestMapping("/test-controller")
public class TestController {
    @GetMapping("/test")
    public String test(){
        return "gateway 调用成功!"+Math.random();
    }
}
